package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.OrderStore")
@Data
@TableName(value = "order_store")
public class OrderStore {
    /**
     * 店铺订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "店铺订单id")
    private Long id;

    /**
     * 店铺id
     */
    @TableField(value = "store_id")
    @ApiModelProperty(value = "店铺id")
    private Integer storeId;

    /**
     * 店铺交易码，同trade表的code
     */
    @TableField(value = "code")
    @ApiModelProperty(value = "店铺交易码，同trade表的code")
    private String code;

    /**
     * 买家id
     */
    @TableField(value = "buyer_id")
    @ApiModelProperty(value = "买家id")
    private Long buyerId;

    /**
     * 交易id
     */
    @TableField(value = "trade_id")
    @ApiModelProperty(value = "交易id")
    private Long tradeId;

    /**
     * 店铺邮费
     */
    @TableField(value = "freight")
    @ApiModelProperty(value = "店铺邮费")
    private Integer freight;

    /**
     * 商品实际付款价格,单位是分
     */
    @TableField(value = "price")
    @ApiModelProperty(value = "商品实际付款价格,单位是分")
    private Long price;

    /**
     * 交易状态,1:待付款，2：待发货，3：待收货，4：交易完成，5：待评价，6：交易关闭，-1：申请售后
     */
    @TableField(value = "stat")
    @ApiModelProperty(value = "交易状态,1:待付款，2：待发货，3：待收货，4：交易完成，5：待评价，6：交易关闭，-1：申请售后")
    private Integer stat;

    /**
     * 采用的物流id
     */
    @TableField(value = "logistics_id")
    @ApiModelProperty(value = "采用的物流id")
    private Long logisticsId;

    /**
     * 订单创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "订单创建时间")
    private Integer createTime;




    /**
     * 付款时间
     */
    @TableField(value = "pay_time")
    @ApiModelProperty(value = "付款时间")
    private Integer payTime;


    @TableField(value = "send_time")
    @ApiModelProperty(value = "确认发货时间")
    private Integer sendTime;

    /**
     * 成交时间
     */
    @TableField(value = "finish_time")
    @ApiModelProperty(value = "确认收货待评价")
    private Integer finishTime;


    @TableField(value = "close_time")
    @ApiModelProperty(value = "订单关闭时间")
    private Integer closeTime;

    /**
     * 备注
     */
    @TableField(value = "comment")
    @ApiModelProperty(value = "备注")
    private String comment;

    /**
     * 微信号
     */
    @TableField(value = "we_chat")
    @ApiModelProperty(value = "微信号")
    private String weChat;


    @TableField(exist = false)
    @ApiModelProperty(value = "用于查询,创建时间最后范围")
    private Integer createTimeEnd;
}
